palette: delay sorted radius vectors construction until needed
authorEll <ell_se@yahoo.com>
Mon, 18 May 2020 17:47:49 +0000 (20:47 +0300)
committerEll <ell_se@yahoo.com>
Mon, 18 May 2020 17:58:42 +0000 (20:58 +0300)
commit4896c8cdc8b1c1b9cac37557bad686685fb1b271
tree2b1f87abcc61544a4d392664e9f8be7b1648a892
parentfcebc451c295fc761002ebd1d5851bbb3a43315d
palette: delay sorted radius vectors construction until needed

In babl-palette, when C11 atomic operations are available, don't
construct the sorted radius vectors on palette setup, but rather
when first converting from RGB to the palette format.  This avoids
the costly vector-construction step for palettes that are never
used as the destination format of a conversion.
babl/babl-palette.c
meson.build